import React, { Component } from 'react'

export class Child2 extends Component {
  render() {
    return (
      <div className="child">
        <h1>兄弟2{this.props.mag1}</h1>
        <button onClick={() => this.props.setMsg('挨揍了')}>xx</button>
      </div>

    )
  }
}
